Problems with tag O((n * log(maxnum)) * logn)